<?php

$_ = microtime(true);

require '../libs/agavi/src/agavi.php';
require '../app/config.php';

Agavi::bootstrap('development');

AgaviContext::getInstance('web')->getController()->dispatch();

/*
$file = AgaviConfig::get('core.app_dir') . '/log/request_' . md5($_SERVER['REQUEST_URI']);
$contents  = '# ' . $_SERVER['REQUEST_URI'] . "\n";
$contents .= '# Executed in: ' . (microtime(true) - $_) . "\n#\n";
$contents .= implode("\n", get_included_files());

file_put_contents($file, $contents);
*/